'use strict';

const conn = require('../../../libs/Conn');

module.exports = async function (updateParams) {

        let delObj = {
            delete_sign: 2,
        };
        let updateSql = `UPDATE department_file  SET ? WHERE department_id in (?);UPDATE user_group  SET ? WHERE department in (?)`;
        await conn(updateSql, [delObj, updateParams.ids,delObj,updateParams.ids]);
        return {success: true};
};